<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
  <script src="../../js/4.30/jquery-1.8.3.js"></script>
  <script src="../../js/4.30/jquery.qrcode.min.js"></script>
  <script src="../../js/4.30/handler-chinese.js"></script>
</head>
<body>
<div id="myDiv"></div>
<script>
  // jq方法找到div并且设置宽高以及内容
  // 1.英文不会乱码
  // $("#myDiv").qrcode({width:300,height:300,text:"heiheihei"});
  // 2.中文乱码,需要引入handler-chinese.js并且text后面需要加utf16to8
  $("#myDiv").qrcode({width:400,height:400,text:utf16to8("我没有啥可说的~")});
  // $("#myDiv").qrcode({width:600,height:600,text:utf16to8("我说你对象做的荷包蛋比我做的都好呢,我做的荷包蛋总是飘鸡蛋絮絮了~")});
</script>
</body>
</html>
